package com.jy.wms.dao;

import com.jy.wms.common.base.BaseDao;
import com.jy.wms.pojo.WmsQualityTestingDetailed;
import org.apache.ibatis.annotations.Param;
import java.util.List;

   /**
   * @ClassName: WmsQualityTestingDetailedMapper.java
   * @Description: TODO(这里用一句话描述这个类的作用)
   * @Author LH
   * @Date Fri Nov 03 15:50:34 GMT+08:00 2017
   */
   public interface WmsQualityTestingDetailedMapper extends BaseDao<WmsQualityTestingDetailed>{

       /**
        * 根据所属规则 id 查询明细
        * @param sszjgzid
        * @return
        */
       public List<WmsQualityTestingDetailed> getDetailedListBySszjgzid(@Param("sszjgzid") String sszjgzid);


   /**
    * 插入一条记录
    * @param entity 实体对象
    * @return int
    */
    public Integer baseInsert(@Param("list") List<WmsQualityTestingDetailed> entity);

   /**
    * 插入一条记录（匹配有值的字段）
    * @param entity 实体对象
    * @return int
    */
   public Integer baseInsertSelective(@Param("WmsQualityTestingDetailed") WmsQualityTestingDetailed entity);

   /**
    * 删除（根据主键ID删除）
    * @param id 主键
    * @return int
    */
   public Integer baseDeleteByPrimaryKey(@Param("id") String id);

   /**
    * 删除（根据ID 批量删除）
    * @param idList 主键ID列表
    * @return int
    */
    public Integer baseDeleteBathPrimaryKeys(@Param("list") List<String> idList);


    /**
    * 分页查询
    * @param entity 实体
    * @return List<WmsQualityTestingDetailed>
    */
    public List<WmsQualityTestingDetailed>  baseSelectPage(@Param("WmsQualityTestingDetailed") WmsQualityTestingDetailed entity);

    /**
    * 查询（根据主键ID查询）
    * @param id 主键ID
    * @return User
    */
    public WmsQualityTestingDetailed  baseSelectByPrimaryKey(@Param("id") String id);

   /**
    * 查询（根据ID 批量查询）
    * @param idList 主键ID列表
    * @return list
    */
    public Integer baseSelectBathPrimaryKeys(@Param("list") List<WmsQualityTestingDetailed> idList);

   /**
    *修改 （匹配有值的字段）
    * @param entity 主键ID列表
    * @return int
    */
    public Integer baseUpdateByPrimaryKeySelective(@Param("WmsQualityTestingDetailed") WmsQualityTestingDetailed entity);

   /**
    *修改（根据主键ID修改）
    * @param entity 主键ID列表
    * @return int
    */
    public Integer baseUpdateByPrimaryKey(@Param("WmsQualityTestingDetailed") WmsQualityTestingDetailed entity);
}
